﻿<%@ Page Title="" Language="C#" MasterPageFile="~/App_MasterPages/layout.Master" AutoEventWireup="true" CodeBehind="Opinions.aspx.cs" Inherits="blackhouse.StareKino.Web.Opinions" %>

<asp:Content ID="Content1" ContentPlaceHolderID="leftContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="mainContent" runat="server">
    <%@ Register Src="~/Modules/OpinionItem.ascx" TagName="OpinionItem" TagPrefix="blackhouse" %>
    <%@ Register Src="~/Modules/OpinionCategories.ascx" TagPrefix="blackhouse" TagName="OpinionCategories" %>


    <asp:HiddenField runat="server" ClientIDMode="Static" ID="apartmentType" />
    <div id="opinionsHeader" class="topBlueHeader">
        <div class="hgroup">
            <h1>Opinie gości o naszym hotelu</h1>
        </div>

    </div>
    <div class="cleaner"></div>
    <blackhouse:OpinionCategories runat="server" id="ctrlOpinionCategories" HeaderTitle="Podsumowanie wszystkich opinii:" />
<%--    <div id="summaryOpinions" class="brownContent">
        <h2>Podsumowanie wszystkich opinii:</h2>
        <div class="summaryOpinionsNumbersWrapper">
            <div class="summaryOpinionsNumbers">
                <div class="summaryOpinionsNumber">
                    <asp:Literal runat="server" ID="ltlAvgOpinions"></asp:Literal>
                </div>
                <div class="summaryOpinionsText">średnia ocena</div>
            </div>
            <div class="summaryOpinionsNumbers">
                <div class="summaryOpinionsNumber">
                    <asp:Literal runat="server" ID="ltlTotalOpinions"></asp:Literal>
                </div>
                <div class="summaryOpinionsText">opinie</div>
            </div>
            <div class="summaryOpinionsNumbers">
                <div class="summaryOpinionsNumber">
                    <asp:Literal runat="server" ID="ltlClients"></asp:Literal>
                </div>
                <div class="summaryOpinionsText">zadowolonych klientów</div>
            </div>
        </div>
        <div class="cleaner summaryOpinionsBreaker"></div>
        <div class="summaryOpinionsRightSite">
            <h3>Ocena w podziale na kategorie:</h3>
            <asp:Repeater runat="server" ID="rptSummaryReviewCategories">
                <ItemTemplate>
                    <div class="summaryOpinionCategory">
                        <span class="label"><%#Eval("Key") %></span>

                        <div class="marker" style="right: <%#(100 - ((KeyValuePair<string, double>)Container.DataItem).Value * 10).ToString("F1", CultureInfo.GetCultureInfo("en-US")) %>%"><span class="value"><%#Eval("Value", "{0:F2}") %></span></div>

                    </div>
                </ItemTemplate>
            </asp:Repeater>
        </div>
        <div class="cleaner"></div>
    </div>--%>
    <h3>Poszczególne opinie apartamentów:</h3>
    <div id="opinions">
        <asp:Repeater runat="server" ID="rptOpinions">
            <ItemTemplate>
                <blackhouse:OpinionItem runat="server" ID="item" Opinion="<%#Container.DataItem %>" />
            </ItemTemplate>
        </asp:Repeater>

    </div>

    <asp:Panel runat="server" ID="opinionsLoad" ClientIDMode="Static" CssClass="loadOpinions">
        <img src="/Data/SiteImages/285.gif" />
        Ładowanie nowych opinii
    </asp:Panel>
    <asp:Panel runat="server" ID="noOpinions" ClientIDMode="Static" CssClass="noOpinions" Visible="false">
        Brak opinii do wyświetlenia.
    </asp:Panel>
    <div id="opinions-load-trigger"></div>

</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="rightContent" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="pageEditContent" runat="server">
</asp:Content>
